package com.zzj.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zzj.entity.CommentRoot;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzj.model.dto.comment.CommentListDTO;
import com.zzj.model.vo.CommentVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zzj
 * @since 2023-05-13
 */
public interface CommentRootMapper extends BaseMapper<CommentRoot> {
    IPage<CommentVo> commentVoList(Page<?> page, @Param("dto") CommentListDTO in);

    CommentVo id (@Param("id") int id);
}
